//
//  MoMoView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/9.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "MoMoView.h"

@implementation MoMoView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.moLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, self.frame.size.width / 3, 15 )];
//        self.moLabel.backgroundColor = [UIColor redColor];
        self.moLabel.text = @"贸商品";
        self.moLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.moLabel];
        
        self.moImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 30, self.frame.size.width, self.frame.size.height/5*1.6)];
        [self.moImage setImage:[UIImage imageNamed:@"xq1"]];
        self.moImage.backgroundColor = [UIColor grayColor];
        [self addSubview:self.moImage];
        
        self.momoLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height/5*1.6+40, self.frame.size.width/3, 15)];
//        self.momoLabel.backgroundColor = [UIColor blueColor];
        self.momoLabel.text = @"贸商品";
        self.momoLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.momoLabel];
        
        self.momoImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, self.frame.size.height/5*1.6+70, self.frame.size.width, self.frame.size.height/5*3)];
        [self.momoImage setImage:[UIImage imageNamed:@"xq2"]];
        self.momoImage.backgroundColor = [UIColor orangeColor];
        [self addSubview:self.momoImage];
        
    }
    return self;
}

@end
